package io.dbw.common.utils;


/**
 * @program: 
 * @description:
 * 
 * @create: 2019-11-04 22:50
 */
public class RandomUtils {

    /**
     * 生成12位随机数
     * @return
     */
    public static long random12() {
        return (long) (Math.random() * (999999999999L - 100000000000L)) + 100000000000L;
    }

    public static long random4() {
        return (long) (Math.random() * (9999L - 1000L)) + 1000L;
    }

    public static void main(String[] args) {
    }


    public static String createOrderNo(String type) {
        return type+ DateUtils.getDateMisTime()+random4();
    }
    public static String createSystemShippingNo() {
        return "WL"+System.currentTimeMillis()+ RandomUtils.random4();
    }
}
